package edu.sctu.zhangwang.month201505.day20150525;

/**
 * Created by Administrator on 2015/5/25 0025.
 */
public class CheShuXin {
    protected String number;
    protected String type;
    protected double value;
    protected double rentPrice;
    protected double rentKilometers;
    protected double rent;

    public CheShuXin(String number,String type,double value){
        this.number = number;
        this.type = type;
        this.value = value;
    }
    public void setRentPrice(double rentPrice){
        this.rentPrice = rentPrice;
    }
    public double getRentPrice(){
        return rentPrice;
    }
    public void setRentKilometers(double rentKilometers){
        this.rentKilometers = rentKilometers;
    }
    public double getRentKilometers(){
        return rentKilometers;
    }
    public void calcuRent(){
        rent = rentPrice*rentKilometers;
    }
    public double getRent(){
        return rent;
    }
    public void printBasicInfo(){
        System.out.println("车牌："+number+"\t车类型："+type+"\t车价："+value);
        System.out.println();
    }
    public void printOtherIfo(){
        System.out.print("租车里程数：" + getRentKilometers());
        System.out.print("\t租车单价：" + rentPrice);
        System.out.println("\t租金："+rent);

    }
}
